import request from '@/utils/request';

export function getEntity(id) {
  return request({
    url: 'rest/api/serviceList/' + id,
    method: 'get'
  });
}

export function getComponent(params) {
  return request({
    url: 'rest/api/serviceList/object',
    method: 'get',
    params
  });
}

export function updateComponent(data) {
  return request({
    url: 'rest/api/serviceList/object',
    method: 'post',
    data
  });
}

export default { getEntity, getComponent, updateComponent };
